-- GENERATED SPELL FOR [Nerub'ar Skitterer] --


function spell0_24566(pUnit, Event) --@Piercing Blow,Self--
pUnit:FullCastSpellOnTarget(49749,pUnit)
pUnit:RegisterEvent('Sorts_24566', 568, 1)
end

function Sorts_24566(pUnit, Event)
local choix_sorts_24566 = math.random(0, 0)
if choix_sorts_24566 == 0 then
pUnit:RegisterEvent('spell0_24566', 1, 1)
end
end

function mob24566_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24566', math.random(1500, 3000), 1)
end

function mob24566_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24566_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24566_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24566, 1, 'mob24566_Action')
RegisterUnitEvent(24566, 2, 'mob24566_Leave')
RegisterUnitEvent(24566, 3, 'mob24566_Kill')
RegisterUnitEvent(24566, 4, 'mob24566_Die')
